/**
 * @author mapeng
 * @version 2017-05-17
 */

(function(doc, win) {

    var pageVariables = {"shopId" : ""};

    $(doc).on("pageInit", "#weixinOpenSuccessPage", function(e, pageId, $page, isBack , isForward) {
        initPage();
    });
    bindEvent();

    function initPage(){

       var params = CommonUtil.takeOutParamObject() || {};
       pageVariables.shopId = params.shopId;
    }

    function bindEvent(){

        //完成
        $(document).on("click","#weixinOpenSuccessPage .header a",function(e){
            // var cache = CommonUtil.takeOutParamObject() || {};
            // cache.shopId = pageVariables.shopId;
            // cache.handleBack = "load";
            // CommonUtil.injectParamObject(cache);
            // $.router.load("store_manage.html",true);
            //跳转新版门店列表
            AppUtil.call(AppUtil.APIS.PUSH_WINDOW,
                {
                    url: 'vuepages/index.html#/storeManage',
                    suffixParams: '',
                    target: 'local',
                    param: {
                        title: null
                    }
                });
        });
    }

})(document, window);